
const devFile = 'http://10.204.104.27:8665/gate/file/upload';
const proFile = `${window.location.origin}/gate/file/upload`;

module.exports = {
  errorCode: {
    permissionDenied: 2010,
  },
  descendingSpeed: [{ id: 1, value: '10M' }, { id: 2, value: '8M' }, { id: 3, value: '3M' }],
  fittedState: [{ id: 0, value: '全部' }, { id: 1, value: '未审核' }, { id: 2, value: '师傅未接单' }, { id: 3, value: '师傅未完成' }, { id: 4, value: '未完结' }],
  networkUseStatus: [{ id: -1, value: '全部' }, { id: 'NETWORK_USE_STATUS_CANCLE', value: '取消' }, { id: 'NETWORK_USE_STATUS_STOP', value: '已停机' }, { id: 'NETWORK_USE_STATUS_UNUSED', value: '未使用' }, { id: 'NETWORK_USE_STATUS_USING', value: '使用中' }],
  dateFormat: 'YYYY/MM/DD',
  time: 'YYYY/MM/DD  HH:MM:SS',
  fileUploadURL: devFile,
  paging: {
    defaultPageNum: 1,
    defaultPageSize: 10,
    defaultPageCount: 10,
  },
  accountStatus: {
    USER_ACCOUNT_STATUS_NORMAL: 'USER_ACCOUNT_STATUS_NORMAL',
    USER_ACCOUNT_STATUS_LOCK: 'USER_ACCOUNT_STATUS_LOCK',
  },
  pagingFormat: {
    showTotal: (total, range) => `当前${range[0]}-${range[1]}记录 总共${total}条记录`,
  },
  packageStatus: [
    {
      id: '-1',
      label: '全部',
      value: '-1',
    },
    {
      id: '1',
      label: '已发布',
      value: 'NETWORK_PACKAGE_STATUS_RELEASE',
    },
    {
      id: '2',
      label: '未审核',
      value: 'NETWORK_PACKAGE_STATUS_UNCHECKED',
    }, {
      id: '3',
      label: '未发布',
      value: 'NETWORK_PACKAGE_STATUS_UNRELEASE',
    }],
};
